<template>
    <div class="embed-container">
        <div class="embed-container-left">
            <div class="ecl-item">
                <NuxtLink to="/embed/a">测试页面A</NuxtLink>
            </div>
            <div class="ecl-item">
                <NuxtLink to="/embed/b">测试页面B</NuxtLink>
            </div>
            <div class="ecl-item">
                <NuxtLink to="/embed/c">测试页面C</NuxtLink>
            </div>
        </div>
        <div class="embed-container-right">
            <NuxtPage />
        </div>
    </div>
</template>

<script>
    export default {
        mounted() {
            this.$router.push({
                path: '/embed/a'
            })
        }
    }
</script>

<style lang="scss">
    .embed-container{
        display: flex;
        &-left{
            width: 200px;
            border: 1px solid #666;
            margin-right: 20px;
            box-sizing: border-box;
            padding: 20px;
            .ecl-item{
                margin-bottom: 10px;
            }
        }
        &-right{
            flex: 1;
            border: 1px solid #666;
        }
    }
</style>